package com.syni.mdd.sjb.common.component.utils.feign.service.mddAll;

import com.syni.mdd.sjb.common.component.utils.feign.constants.Constants;
import com.syni.mdd.sjb.common.component.utils.common.utils.ParamsMap;
import com.syni.mdd.sjb.common.component.utils.common.utils.RpcResponseVo;
import com.syni.mdd.sjb.common.component.utils.feign.dto.mddAll.apiPay.AliPayPrepayDto;
import com.syni.mdd.sjb.common.component.utils.feign.dto.mddAll.apiPay.WxPayPrepayDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

/**
 * @className PayRestApi
 * @description TOO
 * @Author cfx
 * @DATE 2020/3/4 10:00
 * @VERSION 1.0
 **/
@FeignClient(value = Constants.MDD_DSP_API,path = Constants.MDD_DSP_API_PATH)
@RequestMapping("/apiPay")
public interface PayRestService {
    @PostMapping("/aliPayTransfer")
    Map<String,Object> aliPayTransfer(@RequestBody ParamsMap paramsMap);

    @PostMapping("/aliPayPrepay")
    RpcResponseVo aliPayPrepay(@RequestBody AliPayPrepayDto aliPayPrepayDto);

    @PostMapping("/wxPayPrepay")
    RpcResponseVo wxPayPrepay(@RequestBody WxPayPrepayDto wxPayPrepayDto);
}
